package com.brzjomo.secretiveworld.init;

import com.brzjomo.secretiveworld.SecretiveWorld;
import com.brzjomo.secretiveworld.entity.passive.fish.SwordFishEntity;
import com.brzjomo.secretiveworld.entity.passive.fish.TestFishEntity;

import net.minecraft.entity.EntityClassification;
import net.minecraft.entity.EntityType;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class ModEntityTypes {

	public static final DeferredRegister<EntityType<?>> ENTITY_TYPES = new DeferredRegister<>(ForgeRegistries.ENTITIES,
			SecretiveWorld.MODID);

	public static final RegistryObject<EntityType<TestFishEntity>> TEST_FISH_ENTITY = ENTITY_TYPES.register(
			"test_fish_entity",
			() -> EntityType.Builder.<TestFishEntity>create(TestFishEntity::new, EntityClassification.WATER_CREATURE)
					.size(1.3f, 0.4f).build(new ResourceLocation(SecretiveWorld.MODID, "test_fish_entity").toString()));

	public static final RegistryObject<EntityType<SwordFishEntity>> SWORD_FISH_ENTITY = ENTITY_TYPES.register(
			"sword_fish_entity",
			() -> EntityType.Builder.<SwordFishEntity>create(SwordFishEntity::new, EntityClassification.WATER_CREATURE)
					.size(0.85f, 0.4f).build(new ResourceLocation(SecretiveWorld.MODID, "sword_fish_entity").toString()));
}
